package net.guerlab.mall.seller.print.entity.order;

import java.io.Serializable;

public class GoodsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String specId;

    private String goodsName;

    private String price;

    private String quantity;

    private String totlePrice;

    public final String getSpecId() {
        return specId;
    }

    public final void setSpecId(String specId) {
        this.specId = specId;
    }

    public final String getGoodsName() {
        return goodsName;
    }

    public final void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public final String getPrice() {
        return price;
    }

    public final void setPrice(String price) {
        this.price = price;
    }

    public final String getQuantity() {
        return quantity;
    }

    public final void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public final String getTotlePrice() {
        return totlePrice;
    }

    public final void setTotlePrice(String totlePrice) {
        this.totlePrice = totlePrice;
    }

    @Override
    public String toString() {
        return "GoodsInfo [specId=" + specId + ", goodsName=" + goodsName + ", price=" + price + ", quantity="
                + quantity + ", totlePrice=" + totlePrice + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((specId == null) ? 0 : specId.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        GoodsInfo other = (GoodsInfo) obj;
        if (specId == null) {
            if (other.specId != null) {
                return false;
            }
        } else if (!specId.equals(other.specId)) {
            return false;
        }
        return true;
    }

}
